projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24561bd
)
libxc: Leave portability of xg_memalign() as in original patch, rather
author
Keir Fraser
<keir.fraser@citrix.com>
Wed, 9 Apr 2008 15:54:44 +0000
(16:54 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Wed, 9 Apr 2008 15:54:44 +0000
(16:54 +0100)
than following ioemu/osdep.c. This unbreaks build of readnotes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/libxc/xg_private.h
patch
|
blob
|
history
diff --git
a/tools/libxc/xg_private.h
b/tools/libxc/xg_private.h
index 2b863f7b74f13c5890527aded104e4cbe6013c02..563585793a3bee427f9024f3ce428002f660f40d 100644
(file)
--- a/
tools/libxc/xg_private.h
+++ b/
tools/libxc/xg_private.h
@@
-180,7
+180,7
@@
int pin_table(int xc_handle, unsigned int type, unsigned long mfn,
/* Grrr portability */
static inline void *xg_memalign(size_t alignment, size_t size)
{
-#if
defined(_POSIX_C_SOURCE) && !defined(__sun__)
+#if
(_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600
int ret;
void *ptr;
ret = posix_memalign(&ptr, alignment, size);